finding the equation of a line